/**
 * Created by feifan.gou@gamil.com on 2025/4/23 11:23.
 */
import {createRouter, createWebHistory} from 'vue-router';
import UploadArtwork from "./views/UploadArtwork.vue";
import LoginPage from "./views/LoginPage.vue";
import ArtworkList from "./views/ArtworkList.vue";
import AddExport from "./views/AddExport.vue";
import ExportList from "./views/ExportList.vue";

const routes = createRouter({
    routes: [
        {
            path: '/upload',
            component: UploadArtwork,
            meta: { requiresHeader: false },
        },
        {
            path: '/login',
            component: LoginPage,
            meta: { requiresHeader: false },
        },
        {
            path: '/artwork/list',
            component: ArtworkList,
            meta: { requiresHeader: true },
        },
        {
            path: '/add/export',
            component: AddExport,
            meta: { requiresHeader: false },
        },
        {
            path: '/export/list',
            component: ExportList,
            meta: { requiresHeader: true },
        },
        {
            path: '/',
            component: ArtworkList,
            meta: { requiresHeader: true },
        }

    ],
    history: createWebHistory()
});

export default routes;